<template>
    <div>
        <el-card class="box-card">
            <div slot="header" class="clearfix">
                <span>小组消息通知</span>
            </div>
            <div class="text item">
                <div>
                    <el-button class="button" @click="dialogVisible = true"><i class="el-icon-s-promotion"></i>申请
                    </el-button>
                    <el-dialog title="项目简介及要求" :visible.sync="dialogVisible" :modal-append-to-body='false' width="30%"
                        :show-close='false' :before-close="handleClose">
                        <div class="dialog">
                            <img src="@/assets/project.png" alt="">
                            <span class="describe">我们主要是针对在校大学生进行项目技术招聘，需要两个前端工程师和一个后端......</span>
                            <p>请求者</p>
                            <el-input 
                            type="text" 
                            rows="3"
                            autosize placeholder="清柠姓名" v-model="textarea1">
                            </el-input>
                            <div style="margin: 20px 0;"></div>
                            <p>自我描述</p>
                            <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" placeholder="请进行一个简短的自我介绍"
                                v-model="textarea2">
                            </el-input>
                        </div>
                        <span slot="footer" class="dialog-footer">
                            <el-button @click="dialogVisible = false" class="cancle">取 消</el-button>
                            <el-button type="primary" class="setApply" @click="dialogVisible = false">发送申请</el-button>
                        </span>
                    </el-dialog>
                    <el-button class="button1"><i class="el-icon-s-opportunity"></i>处理</el-button>
                </div>
            </div>
        </el-card>
    </div>
</template>

<script>
export default {
    name: 'messageNotice',
    data() {
        return {
            dialogVisible: false
        }
    },
    props: {

    },
    components: {
    },
    mounted() {

    },
    methods: {
        handleClose(done) {
            this.$confirm('确认关闭？')
                .then(_ => {
                    done();
                })
                .catch(_ => { });
        }

    }
}
</script>

<style scoped lang="less">
.box-card {
    width: 28vw;
    height: 28vh;
    margin-right: 1vw;
    margin-left: 6vh;
    border-radius: 10px;
    // margin-top: -5vh;
    background: rgba(244, 250, 232, 1);

    &:hover {
        box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
    }

    .clearfix {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: 0px;
        line-height: 0px;
        color: rgba(10, 22, 41, 1);
        text-align: left;
        vertical-align: top;
        padding: 2vh;
    }

    .item {
        text-align: center;

        .button {
            border-radius: 12px;
            background: rgba(165, 214, 63, 1);
            padding: 4vh 5vh;
            margin: 2vh;
            font-size: 18px;
            font-weight: 400;
            letter-spacing: 0px;
            line-height: 0px;
            color: rgba(255, 255, 255, 1);
            text-align: center;
            vertical-align: top;

            i {
                margin-right: 2vh;
                font-size: 22px;
            }
        }

        .button1 {
            border-radius: 12px;
            background: linear-gradient(129.54deg, rgba(0, 118, 135, 0.08) 0%, rgba(0, 118, 135, 0.06) 52.6%, rgba(0, 118, 135, 0.02) 100%), rgba(235, 240, 241, 0.3);
            padding: 4vh 5vh;
            margin: 2vh;
            font-size: 18px;
            font-weight: 400;
            letter-spacing: 0px;
            line-height: 0px;
            color: rgba(0, 124, 132, 0.8);

            i {
                margin-right: 1vh;
                font-size: 22px;
            }

        }

        p {
            text-align: left;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0px;
            line-height: 24px;
            color: rgba(125, 133, 146, 1);
            margin-left: 1vh;
        }

        :deep(.el-dialog) {
            border-radius: 24px;
        }

        :deep(.el-dialog__header) {
            background-color: #F3F9E7;
            border-radius: 24px;
        }

        :deep(.el-dialog__body) {
            background-color: #F3F9E7;
        }

        :deep(.el-dialog__footer) {
            background-color: #F3F9E7;
            border-radius: 24px;
        }

        .describe {
            font-size: 16px;
            font-weight: 400;
            letter-spacing: 0px;
            line-height: 24px;
            color: rgba(10, 22, 41, 1);
            text-align: left;
        }

        .setApply {
            border-radius: 14px;
            background: rgba(67, 207, 124, 1);
            box-shadow: 0px 6px 12px 0px rgba(63, 140, 255, 0.26);
        }
        .cancle{
            border-radius: 14px;
            box-shadow: 0px 6px 12px 0px rgba(182, 179, 178, 0.26);
        }


    }
}
</style>
